package com.example.test003.service.impl;

import com.example.test003.domain.entity.Myweathers;
import com.example.test003.mapper.MyWeatherMapper;
import com.example.test003.service.MyWeatherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MyWeatherServiceImpl implements MyWeatherService {
    @Autowired
    private MyWeatherMapper myWeatherMapper;

    @Override
    public void insertWeatherStation(Myweathers myweathers) {
        myWeatherMapper.insertWeatherStation(myweathers);
    }

    @Override
    public Myweathers QueryWeatherStation(String time) {
        Myweathers myweather=myWeatherMapper.QueryWeatherStation(time);
        return myweather;
    }

    @Override
    public List<Myweathers> queryWeatherStationByClientId(String time, String clientid) {
        List<Myweathers> myweathers=myWeatherMapper.queryWeatherStationByClientId(time,clientid);
        return myweathers;
    }
}
